
import Vue from "vue"
import Router from 'vue-router'
// import Entry from "../components/Entry.vue"
// import AudioToWord from "@/view/AudioToWord"
// import WordToAudio from "@/view/WordToAudio"
// import WordToAudioV2 from "@/view/WordToAudioV2"
import Layout from '@/view/layout'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            component: Layout,
            redirect: 'index',
            children: [
              {
                path: 'index',
                component: () => import('@/view/AudioToWord'),
                name: 'Index',
                meta: { title: '标题1', icon: 'dashboard', affix: true }
              }
            ]
        },
        {
            path: '/two',
            component: Layout,
            children: [
              {
                path: 'wordToAudio',
                component: () => import('@/view/WordToAudio'),
                name: 'Index',
                meta: { title: '标题2', icon: 'dashboard', affix: true }
              }
            ]
        },
        {
            path: '/two',
            component: Layout,
            children: [
              {
                path: 'AudioToWord',
                component: () => import('@/view/AudioToWord'),
                name: 'Index',
                meta: { title: '标题2', icon: 'dashboard', affix: true }
              }
            ]
        },
        {
            path: '/two',
            component: Layout,
            children: [
              {
                path: 'wordToAudioV2',
                component: () => import('@/view/WordToAudioV2'),
                name: 'Index',
                meta: { title: '标题3', icon: 'dashboard', affix: true }
              }
            ]
        }
    ]
})